package finassist.controller;

import java.util.List;

import org.hibernate.exception.SQLGrammarException;

import com.opensymphony.xwork2.ActionContext;

import finassist.model.Entiti;
import finassist.model.Ledger;
import finassist.model.Test;
import finassist.model.User;
import finassist.DAO.EntityProcessManagerDAO;
import finassist.DAO.LedgerProcessManagerDAO;
import finassist.DAO.LoginUserManagerDAO;
/**
 * AJ Projects
 * LoginUserManager.java
 * Purpose: Login User Database.
 *
 * @author Karthick Natarajan
 * @version 1.0 9/10/13
 */

public class LedgerProcessManager {

	public void createLedger(Ledger ledger) {
		LedgerProcessManagerDAO logObj = new LedgerProcessManagerDAO();
	
		try {
			 logObj.add(ledger);
			// logObj.addTest(test);
		}
		catch (SQLGrammarException e) {
		    e.printStackTrace();
		}
		catch (Exception e) {
			e.printStackTrace();
		}
	}

}
